package com.kefu.call.vo;

import javax.validation.constraints.Size;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import com.kefu.common.context.KefuContext;
import com.kefu.common.vo.AbstractUpdateVo;
import com.kefu.call.model.CallInnumber;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * @author CodeGenerator
 * @date 2022/07/24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@ApiModel(description = "呼入号码")
public class CallInnumberUpdateVo extends AbstractUpdateVo<CallInnumber,String> {

    @NotEmpty
    @ApiModelProperty(value = "主键")
    private String uuid;
    
    @ApiModelProperty(value = "公司id")
    private String company;
    
    @ApiModelProperty(value = "说明")
    private String remarks;

    @Override
    public CallInnumber convert() {
        CallInnumber info = new CallInnumber();
        info.setCompany(company);
        info.setRemarks(remarks);
        KefuContext context = KefuContext.getKefuContext();
        info.setUuid(uuid);
        return info;
	}
}